a = 100
def test():
    global a
    a = 500
    return a

result = test()
print(result)
print(a)